package com.itheima.utils;

/**
 * @author 16778
 * @version 1.0
 * @date 2025/9/24 16:38
 */
public class CurrentHolder {
    private static final ThreadLocal<Integer> CURRENT_LOCAL = new ThreadLocal<>();
    public static void setCurrentId(Integer employeeId) {CURRENT_LOCAL.set(employeeId);}
    public static Integer getCurrentId(){return CURRENT_LOCAL.get();}
    public static void remove(){CURRENT_LOCAL.remove();}
}
